package com.imooc.ad.mysql;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @ClassName: BinlogConfig
 * @Author: zhangzhongyu
 * @Date: 2019-10-20 17:33
 * @Version: 1.0
 */
@Component
@ConfigurationProperties(prefix = "adconf.mysql")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BinlogConfig {

    private String host;

    private Integer port;

    private String username;

    private String password;

    private String binlogName;

    private Long position;
}
